From d15dc6f90b5ee651469b2f52618c185d481c21a4 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 12 Jul 2019 08:43:44 +0000 Subject: [PATCH] Fix a string leak Fixes #2014 --- gtk/gtkemojicompletion.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c index 058e1867e2..23d8a34195 100644 --- a/gtk/gtkemojicompletion.c +++ b/gtk/gtkemojicompletion.c @@ -563,7 +563,6 @@ populate_completion (GtkEmojiCompletion *completion, GVariantIter iter; GVariant *item; - text = g_strdup (text); g_free (completion->text); completion->text = g_strdup (text); completion->length = g_utf8_strlen (text, -1); -- 2.30.2